package com.example.listener;

import io.netty.handler.codec.http2.Http2Connection;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class MyListener implements HttpSessionListener {

    public static int count=0;
    @Override
    public void sessionCreated(HttpSessionEvent se) {
        System.out.println("创建session");
        count++;
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        System.out.println("销毁session");
    }
}
